php remove dashes from string

69

php remove dashes from string -

//replace dashes (-) with spaces ( )  
$string="text-with-dashes";
//php string replace
$test = str_replace("-", " ", $string);

Comments

Submit
0 Comments